<template>
  <div class="bottom_tabs">
    <p class="top_line"></p>
    <div class="tabs_list">
      <ul>
        <li class="active"><i class="iconfont icon-home"></i><span>首页</span></li>
        <li><i class="iconfont icon-cate"></i><span>分类</span></li>
        <li><i class="iconfont icon-cart"></i><span>购物车</span></li>
        <li><i class="iconfont icon-name"></i><span>我的</span></li>
      </ul>
    </div>
  </div>
</template>
<style lang="scss">
.bottom_tabs{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  .top_line{
    height: 10px;
    background: #eee;
    border-bottom: 1px solid #b2b2b2;
  }
  ul{
    height: 5rem;
    background: #fff;
    display: flex;
    justify-content: flex-start;
    align-items: center;

    li{
      width: 25%;
      text-align: center;
      position: relative;
      color: #444;

      .iconfont{
        display:block;
        font-size: 2.4rem;
        color: #777;
        margin-bottom: 3px;
      }

      .icon-cate{
        font-size: 1.8rem;
        margin: 5px 0 6px;
      }

      sapn{
        display: inline-block;
        width: 100%;
        text-align: center;
        position: absolute;
        bottom: 0;
        left: 0;
      }

      &.active{
        color: #f15757;

        .iconfont{
          color: #f15757;
        }
      }
    }
  }
}
</style>